using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeEnergyBolts : Upgrade{

	protected override void ProjectileDecidingEventHandler(object _sender,ShootEventArgs e) {
		base.ProjectileDecidingEventHandler(_sender,e);
		if(e.stat.currentProjectile!=weapon.weapon.stat.projectile) return;
		if(Utility.Chance(0.25f)) e.stat.currentProjectile=ProjectileData.nameToData["RandomEnergyBolt"];
	}

}